﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Template.Master"
    Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">
        $(function () {
            var lastIndex;
            $('#tt').datagrid({
                width: 'auto',
                height: '500',
                nowrap: false,
                striped: true,
                remoteSort: false,
                collapsible: true,
                fitColumns: true,
                url: '<%=Url.Action("GetAllActionJson") %>',
                sortName: 'Sort',
                sortOrder: 'asc',
                idField: 'Id',
                pagination: true,
                columns: [[
                    { field: 'Action', title: '动作', width: 120, align: 'center' },
                    { field: 'Controller', title: '控制器', width: 80, align: 'center' },
                    { field: 'Area', title: '区域', width: 80, align: 'center' },
                    { field: 'Method', title: '方法', width: 80, align: 'center' },
                    { field: 'IsPage', title: '页面', width: 80, align: 'center' },
                    { field: 'Description', title: '描述', width: 80, align: 'center' }
                ]],

                onBeforeLoad: function () {
                    $(this).datagrid('rejectChanges');
                },
                onClickRow: function (rowIndex) {
                },
                onSelect: function (rowIndex, rowData) {
                }
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div region="center" style="width: 500px; height: 100%; padding: 1px; overflow-y: auto;
        position: relative">
        <table id="tt" style="height: 100%" title="Action列表" iconcls="icon-edit">
        </table>
    </div>
</asp:Content>
